
<!-- JQGRID -->
<link rel="stylesheet" type="text/css" media="screen" href="<?php echo base_url(); ?>js/jqGrid/css/ui.jqgrid.css" />
<script src="<?php echo base_url(); ?>js/jqGrid/i18n/grid.locale-es.js" type="text/javascript"></script>
<script type="text/javascript" src="<?php echo base_url(); ?>js/jqGrid/jquery.jqGrid.min.js"></script>


<script type="text/javascript">
	var base_url = '<?php echo base_url() ?>';
	var site_url = '<?php echo site_url() ?>';
        var url = '';

        $(document).ready(function() {
            //dtgLoadButton();

           var grid = jQuery("#newapi<?php echo $grid['gridname'];?>").jqGrid({
                    ajaxGridOptions : {type:"POST"},
                       jsonReader : {
                      root:"data",
                      repeatitems: false

                   },
                    ondblClickRow: function(id){
                      var gridwidth = jQuery("#newapi<?php echo $grid['gridname'];?>").width();
                      gridwidth = gridwidth/2;
                      grid.editGridRow(id, {closeAfterEdit:true,mtype:'POST'});
                       return;
                      },
                    rowList:[10,20,30],
                    viewrecords: true
                   <?php echo $grid['table'];?>
               })
              <?php echo $grid['pager'];?>;

              $('#btnvolver').button().click( function(){ redirect_to('usuarios/showcontrolpanel');} );
              $('#tablediv').hide().slideDown('slow');
        });
</script>
<div class="span-23 barra ui-corner-top last" style="height:20px"></div>
<div class="ui-widget-content span-23 last" id="tablediv">
<div class="push-20 span-3">
  <button id="btnvolver">
    Volver
  </button>
</div>

<h1>Usuarios del sistema</h1>
<center><table id="newapi<?php echo $grid['gridname'];?>"></table> <div id="pnewapi<?php echo $grid['gridname'];?>"></div></center>
<hr class="space">
</div>

<div class="span-23 barra ui-corner-bottom" style="height:50px"></div>
